package com.ts.api.http.org.entity.apply;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 李源聪
 */
@Data
public class ApiOrgApplyNanNingRongShi {
    // 客户基本信息
    private CustomerInfo customerInfo = new CustomerInfo();

    @Data
    public class CustomerInfo {
        // 姓名
        @JSONField(name = "name")
        private String name;
        @JSONField(name = "gender")
        // 性别(1.男，2.女)
        private Integer gender;
        @JSONField(name = "household_register")
        private String householdRegister;
        // 城市名称
        @JSONField(name = "city_name")
        private String cityName;
        // 学历: 1-高中及以下, 2-大专/本科, 3-硕士及以上
        @JSONField(name = "education")
        private Integer education;
        // 职业类型: 1-自雇人士, 2-工薪族, 3-三无, 4-其他
        @JSONField(name = "job_type")
        private Integer jobType;
        // 身份证号码
        @JSONField(name = "idcard")
        private String idcard;
        // 年龄
        @JSONField(name = "age")
        private Integer age;
        // 手机号码
        @JSONField(name = "phone_number")
        private String phoneNumber;
        @JSONField(name = "phone_md5")
        private String phoneMd5;
    }

    private CustomerRequirements customerRequirements = new CustomerRequirements();

    @Data
    public class CustomerRequirements {
        // 贷款金额（1. 0-3万，2. 3-5万，3. 10-20万，4. 20万以上，5. 1万-5万，6. 1万以内，7. 其他）
        @JSONField(name = "loan_amount")
        private Integer loanAmount;
        // 贷款用途（1. 消费，2. 装修，3. 购车买房，4. 经营周转，5. 其他）
        @JSONField(name = "loan_purpose")
        private Integer loanPurpose;
    }

    private CustomerDetails customerDetails = new CustomerDetails();

    @Data
    public class CustomerDetails {
        // 公司名称
        @JSONField(name = "company_name")
        private String companyName;
        // 公司性质（1. 私营，2. 国企，3. 其他）
        @JSONField(name = "company_type")
        private Integer companyType;
        // 银行代发
        @JSONField(name = "bank_payroll")
        private String bankPayroll;
        // 社保状态（0. 无，1. 有）
        @JSONField(name = "social_security_status")
        private String socialSecurityStatus;
        // 公积金 （0. 无，1. 有）
        @JSONField(name = "provident_fund_status")
        private Integer providentFundStatus;
    }

    private CustomerAssets customerAssets = new CustomerAssets();
    @Data
    public class CustomerAssets {
        // 打卡工资: 0-无打卡工资, 1-1万及以下, 2-1.1万~2万, 3-2.1万~5万, 4-5.1万及以上
        @JSONField(name = "salary_range")
        private Integer salaryRange;
        // 房产（1有/0无）
        @JSONField(name = "house_property")
        private Integer houseProperty;
        // 车产（1有/0无）
        @JSONField(name = "car_property")
        private Integer carProperty;
        // 保单（1有/0无）
        @JSONField(name = "bd_status")
        private Integer bdStatus;
        // 花呗白条额度
        @JSONField(name = "huabei_baitiao")
        private String huabeiBaitiao;
        // 芝麻信用分
        @JSONField(name = "sesame_credit_score")
        private Integer sesameCreditScore;
        // 微粒贷
        @JSONField(name = "we_lend")
        private String weLend;
    }

    @JSONField(name = "creditInformation")
    private CreditInformation creditInformation = new CreditInformation();
    @Data
    public class CreditInformation {
        // 有无逾期（0.无，1.有）
        @JSONField(name = "credit_overdue")
        private Integer creditOverdue;
        // 信用卡总金额
        @JSONField(name = "credit_card_total_amount")
        private String creditCardTotalAmount;
    }

    private List<LoanInformation> loanInformation = new ArrayList<LoanInformation>();
    @Data
    public class LoanInformation {
        // 信贷总金额
        @JSONField(name = "loan_total_amount")
        private String loanTotalAmount;
    }

}
